/*
 *
 * IWeatherUserModel
 *
 * Copyright 2008-2009 Centro Andaluz de Innovación y Tecnologías de la
 * Información y las Comunicaciones (CITIC). All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 *
 * Please contact CITIC - Edificio CITIC, C/ Marie Curie, 6 Parque
 * Tecnológico de Andalucía 29590 - Campanillas, Málaga, Spain
 * or visit www.citic.es, if you need additional information or
 * have any questions.
 */

package es.citic.puedes.weatherservice.umm;

import java.util.List;

import es.citic.puedes.weatherservice.WeatherException;
import es.citic.puedes.weatherservice.model.Language;

public interface IWeatherUserModel {

	/**
	 * Update the database with the current preference model of the user with
	 * the locations
	 * 
	 * @throws WeatherException
	 *             If an exception occurred
	 */
	void saveUserModel() throws WeatherException;

	/**
	 * Gets the preferences of the user
	 * 
	 * @param language
	 *            language for getting the preferences
	 * @return preference list Preferences from user
	 * @throws WeatherException
	 *             If an exception occurred
	 */

	List<WeatherPreferences> getPreferences(Language language)
			throws WeatherException;

}
